package HomeWorkNewYear;

public class ooDay01ExtendsTest {
    public static void main(String[] args) {
        ooDay01Student wmm = new ooDay01Student("wmm",18,"wuxi","2412",1);
        wmm.eat();
        wmm.sleep();
        wmm.sayHi();
        wmm.study();

        ooDay01Teacher wkk = new ooDay01Teacher("wkk",18,"shanghai",10000);
        wkk.eat();
        wkk.sleep();
        wkk.sayHi();
        wkk.teach();

        ooDay01Doctor dxm = new ooDay01Doctor("dxm",18,"henan","主治医生");
        dxm.eat();
        dxm.sleep();
        dxm.sayHi();
        dxm.cut();
    }
}
